package com.example.backend.service;

import jakarta.mail.MessagingException;
import java.io.File;
import java.util.Map;

/**
 * 邮件服务接口
 */
public interface EmailService {
    
    /**
     * 发送简单文本邮件
     */
    void sendSimpleMail(String to, String subject, String content);
    
    /**
     * 发送HTML邮件
     */
    void sendHtmlMail(String to, String subject, String content) throws MessagingException;
    
    /**
     * 发送带附件的邮件
     */
    void sendAttachmentsMail(String to, String subject, String content, 
            Map<String, File> attachments) throws MessagingException;
    
    /**
     * 发送模板邮件
     */
    void sendTemplateMail(String to, String subject, String template, 
            Map<String, Object> variables) throws MessagingException;
} 